﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace PropertyManagementSystemAPI.Models {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "ownerinfo", DisableSyncStructure = true)]
	public partial class Ownerinfo {

		/// <summary>
		/// 主键、自增
		/// </summary>
		[JsonProperty, Column(Name = "oid", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int Oid { get; set; }

		/// <summary>
		/// 入住时间
		/// </summary>
		[JsonProperty, Column(Name = "createtime", DbType = "datetime")]
		public DateTime? Createtime { get; set; }

		/// <summary>
		/// 外键、房产信息外键
		/// </summary>
		[JsonProperty, Column(Name = "hid", DbType = "int")]
		public int? Hid { get; set; }

		/// <summary>
		/// 是否删除
		/// </summary>
		[JsonProperty, Column(Name = "isdelete")]
		public bool? Isdelete { get; set; }

		/// <summary>
		/// 出生日期
		/// </summary>
		[JsonProperty, Column(Name = "obirthday", DbType = "datetime")]
		public DateTime? Obirthday { get; set; }

		/// <summary>
		/// 身份证号
		/// </summary>
		[JsonProperty, Column(Name = "oidcard", DbType = "char(18)")]
		public string Oidcard { get; set; }

		/// <summary>
		/// 业主照片
		/// </summary>
		[JsonProperty, Column(Name = "oimg")]
		public string Oimg { get; set; }

		/// <summary>
		/// 登录名
		/// </summary>
		[JsonProperty, Column(Name = "ologincode", StringLength = 50)]
		public string Ologincode { get; set; }

		/// <summary>
		/// 联系电话
		/// </summary>
		[JsonProperty, Column(Name = "ophone", DbType = "char(11)")]
		public string Ophone { get; set; }

		/// <summary>
		/// 业主名称
		/// </summary>
		[JsonProperty, Column(Name = "orealname", StringLength = 50)]
		public string Orealname { get; set; }

		/// <summary>
		/// 性别
		/// </summary>
		[JsonProperty, Column(Name = "osex", DbType = "char(2)")]
		public string Osex { get; set; }

		/// <summary>
		/// 登录密码
		/// </summary>
		[JsonProperty, Column(Name = "password", StringLength = 50)]
		public string Password { get; set; }

	}

}
